Field Changed Context
表单字段值变化上下文 (fieldChangedContext) 提供对表单字段值变化的引用。
API
| 属性 | 类型 | 描述 |
|---|---|---|
| fieldName | string | 发生值改变的字段名称。 |
| subGridName | string | 发生值改变的字段如果归属于一个子表行,则 subGridName 就是子表的名称。 |
| subGridLine | number | 发生值改变的字段如果归属于一个子表行,则 subGridLine 就是子表行的索引。该值是从 0 开始。 |
| currentField | FieldNode | 返回发生值改变的字段引用。 |
thisApp.fieldOnChanged = function(ctx) {
const currentCtx = ctx.getCurrentContext();
console.log('field changed', currentCtx)
}